/**************************************************************************
 *                                                                        *
 *         Copyright (c) 2007 by Sunplus mMedia Inc.                      *
 *                                                                        *
 *  This software is copyrighted by and is the property of Sunplus        *
 *  mMedia Inc. All rights are reserved by Sunplus mMedia Inc.  This      *
 *  software may only be used in accordance with the corresponding        *
 *  license agreement. Any unauthorized use, duplication, distribution,   *
 *  or disclosure of this software is expressly forbidden.                *
 *                                                                        *
 *  This Copyright notice MUST not be removed or modified without prior   *
 *  written consent of Sunplus mMedia Inc.                                *
 *                                                                        *
 *  Sunplus mMedia Inc. reserves the right to modify this software        *
 *  without notice.                                                       *
 *                                                                        *
 *  Sunplus mMedia Inc.                                                   *
 *  19-1, Innovation First Road, Science-Based Industrial Park,           *
 *  Hsin-Chu, Taiwan, R.O.C.                                              *
 *                                                                        *
 **************************************************************************/

#ifndef __CARDCON__H__
#define __CARDCON__H__
//------------------------------------------------------------------------------
//Header
//------------------------------------------------------------------------------
#include "cardopt.h"

//------------------------------------------------------------------------------
//Constant
//------------------------------------------------------------------------------

//-------------------------------------
//cardptch.c
//-------------------------------------
#define	K_Stage_Final			0x80
#define	K_Stage_Beta			0x60
#define	K_Stage_Alpha			0x40
#define	K_Stage_Development		0x20

#define	K_Release_Version		0x00
#define	K_NonRelease_Code01		0x01
#define	K_NonRelease_Code02		0x02
#define	K_NonRelease_Code03		0x03
#define	K_NonRelease_Code04		0x04
#define	K_NonRelease_Code05		0x05
#define	K_NonRelease_Code06		0x06

#define K_Card_Version			0x0210			// Ex 1.8.1 = 0x0181, wyeo@0711
								// Ex 1.9.0 = 0x0190, // patch 4.4.1@wyeo
								// Ex 2.0.0 = 0x0200, // @wyeo@091802
								// Ex 2.1.0 = 0x0210, // @patch 4.5@wyeo@make table make faster@100302
#define K_Card_Statge			K_Stage_Development	// Final = 0x80, Beta = 0x60, Alpha = 0x40, Development = 0x20
#define K_Card_Non_Release		K_NonRelease_Code01	// Release = 0, Non Release = other value

#define K_SDRAM_SUPPORTED_BIT		0
#define K_DOSRAM_SUPPORTED_BIT		1
#define K_NANDF_SUPPORTED_BIT		2
#define K_SMC_SUPPORTED_BIT		3
#define K_CFC_SUPPORTED_BIT		4
#define K_SDF_SUPPORTED_BIT		5
#define K_MMC_SUPPORTED_BIT		6
#define K_NORF_SUPPORTED_BIT		7
#define K_NEXTF_SUPPORTED_BIT		8


//-------------------------------------
//card.c
//-------------------------------------

//-------------------------------------
//carddef.h
//-------------------------------------
#define K_Card_PageSize            ((UINT16) 0x0200)
#define K_Card_PageSizeShift		((UINT8) 9)



#endif /*__CARDCON__H__*/
